package com.ambercrm.beans;

/**
 * Created by jack.dong on 2017/6/26.
 */

public class CommonClass<T> {
    int code;
    String msg;
    T result;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    //万一服务端不给msg字段呢？  难道业务里都去各种判断？
    public String getMsg() {
        return msg == null ? "" : msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
}
